#include<bits/stdc++.h>
using namespace std;

long long a[100010];

int main() {
	long long n, k;
	cin >> n >> k;

	for (int i = 1; i <= n; i++)
		cin >> a[i];

	long long l = 0, r = 100000001, mid, cnt;
	while (l + 1 < r) {
		cnt = 0;
		mid = l + (r - l) / 2;
		for (int i = 1; i <= n; i++)
			cnt += a[i] / mid;
		if (cnt < k)
			r = mid;
		else
			l = mid;
	}
	cout << l;
	return 0;
}

